package com.wangzhenyu.common.base.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "login_info")
class LoginInfo {

    @PrimaryKey(autoGenerate = true)
    var id: Int = 0

    @ColumnInfo(name = "access_token")
    var accessToken: String? = null

    @ColumnInfo(name = "account_member_id")
    var accountMemberId: String? = null //账户会员id

    @ColumnInfo(name = "face")
    var face: String? = null //会员头像

    @ColumnInfo(name = "founder")
    var founder: Int? = null

    @ColumnInfo(name = "nickname")
    var nickname: String? = null  //真实姓名

    @ColumnInfo(name = "refresh_token")
    var refreshToken: String? = null //刷新token

    @ColumnInfo(name = "role_id")
    var roleId: Int? = null

    @ColumnInfo(name = "goods_management_category")
    var goodsCateId: String? = null

    @ColumnInfo(name = "shop_status")
    var shopStatus: String? = null  //店铺状态  CLOSED("店铺关闭")  REFUSED("审核拒绝")  APPLY("申请开店")

    @ColumnInfo(name = "uid")
    var uid: Int? = null //会员ID

    @ColumnInfo(name = "shop_name")
    var shopName: String? = null //店铺名称

    @ColumnInfo(name = "shop_logo")
    var shopLogo: String? = null //店铺logo

    @ColumnInfo(name = "clerkId")
    var clerkId: Int? = null //店员id

    @ColumnInfo(name = "mobile")
    var mobile: String? = null //手机号码

    @ColumnInfo(name = "shop_id")
    var shopId: Int? = null

    @ColumnInfo(name = "open_status")
    var openStatus: Boolean? = null

    // 是否显示提现  0 不显示体现    1  显示体现
    @ColumnInfo(name = "show_button")
    var showButton: Int? = 0

    @ColumnInfo(name = "status_reason")
    var statusReason: String? = null //状态原因（拒绝/未通过）

    //true表示已经设置了，false为没有设置
    //营业时间
    @ColumnInfo(name = "have_opentime")
    var have_opentime: Boolean = true

    //店铺logo
    @ColumnInfo(name = "have_shoplogo")
    var have_shoplogo: Boolean = true

    //联系电话
    @ColumnInfo(name = "have_mobile")
    var have_mobile: Boolean = true
}
//  【登录】和【注册】之后按照shop_status进行页面跳转判断
//APPLY("申请开店")	等待审核结果	等待审核提示页面---联系客服
//APPLYING("申请中")	申请信息的填写过程中	申请信息填写页面 ---重新填写
//OPEN("开启中")	正常	首页
//CLOSED("店铺关闭")	禁止运营	店铺关闭提示页面---联系客服
//REFUSED("审核拒绝")	修改注册重新申请	审核拒绝提示页面---重新填写
//UN_APPLY("未开店")	申请开店	申请开店提示页面 ---联系客服